/* $RCSFile: ADNDynImportlog.cs $
 * Apache license v2 2011 by Christian Surieux
 * $Source: ?/CRMWrapper3/DynEntities/ADNDynImportlog.cs $
 * $log$
 * Revision 6 2010/08/06 19:56:33  christian.surieux
 *   Added Log to All cs files
 */

/* Copyrights Christian Surieux 2010 */
/* Class ADNDynImportlog */
/* Date 2010-01-06 16:07:32Z */

using System;
using System.Diagnostics;
using System.Collections;
using System.ComponentModel;
using System.Collections.Generic;
using System.Text;
using CrmSdk;

namespace AddonNice.CRMWrapper
{
	public class ADNDynImportlog : DynEntity
	{
        protected class Ftor: DFactor
        {
            public Ftor() : base(CrmStr.importlog)
            {}

            public override Type DynType
            { get { return typeof(ADNDynImportlog); } }

            public override string DynTypename
            {   get{ return CrmStr.importlog;}}

            public override DynEntity Build()
            {   return new ADNDynImportlog();}

            public override DynEntity Build(CRMWrapperBase w, InternalDynamicEntity dEntity, PropertyDescriptorCollection wproperties)
            {   return new ADNDynImportlog(w, dEntity, wproperties, null);}

            public override DynEntity Build(CRMWrapperBase w, string PrimaryFieldValue)
            {   return new ADNDynImportlog(w,PrimaryFieldValue);}

            public override DynEntity Build(CRMWrapperBase w,Guid PrimaryKeyValue)
            {   return new ADNDynImportlog(w,PrimaryKeyValue);}
        }

        static ADNDynImportlog(){new Ftor();} 
        
        public override bool HasOwningBusinessUnitProperty
        { get { return true; } }
        
        public override bool HasPrimaryField
        {
            get
            { return false; }
        }

        public ADNDynImportlog() : base() { }
        
        public ADNDynImportlog(CRMWrapperBase w,string PrimaryFieldValue)
            : base(w,CrmStr.importlog)
        { }
        
        public ADNDynImportlog(CRMWrapperBase w,Guid CrmId) : base(w,CrmStr.importlog,CrmId) { }
        
        public ADNDynImportlog(CRMWrapperBase w,InternalDynamicEntity e) : base(w,CrmStr.importlog,e,null,null) { }
        
        public ADNDynImportlog(CRMWrapperBase w,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(w,CrmStr.importlog,e,prop,s) { }
        
        public ADNDynImportlog(ResetWrapperHandler fn,string PrimaryFieldValue)
            : base(fn,CrmStr.importlog)
        { }
        
        public ADNDynImportlog(ResetWrapperHandler fn,Guid CrmId) : base(fn,CrmStr.importlog,CrmId) { }
        
        public ADNDynImportlog(ResetWrapperHandler fn,InternalDynamicEntity e) : base(fn,CrmStr.importlog,e,null,null) { }
        
        public ADNDynImportlog(ResetWrapperHandler fn,InternalDynamicEntity e,PropertyDescriptorCollection prop,InternalColumnSet s) : base(fn,CrmStr.importlog,e,prop,s) { }

        /* Properties */

        [CrmDynAttribute(CrmStr.importlog)]
        public Guid importlogid
        {
            get
            { return KeyPropertyValue(CrmStr.importlogid); }
            set
            { AddKeyProperty(CrmStr.importlogid,value); }
        }

        protected override void SetCrmIdProperty(Guid crmId)
        {
            if ( !dicProperty.ContainsKey(CrmStr.importlogid) || KeyPropertyValue(CrmStr.importlogid) != crmId )
                importlogid = crmId;
        }
        public override Guid PrimaryKeyGuidValue
        {
            get
            { return importlogid; }
            set { importlogid = value; }
        }
        [CrmDynAttribute(CrmStr.importlog)]
        public string additionalinfo
        {
            get
            { return StringPropertyValue(CrmStr.additionalinfo); }
            set
            { AddStringProperty(CrmStr.additionalinfo,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public string columnvalue
        {
            get
            { return StringPropertyValue(CrmStr.columnvalue); }
            set
            { AddStringProperty(CrmStr.columnvalue,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public string errordescription
        {
            get
            { return StringPropertyValue(CrmStr.errordescription); }
            set
            { AddStringProperty(CrmStr.errordescription,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public int errornumber
        {
            get
            { return NumberPropertyValue(CrmStr.errornumber); }
            set
            { AddNumberProperty(CrmStr.errornumber,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public string headercolumn
        {
            get
            { return StringPropertyValue(CrmStr.headercolumn); }
            set
            { AddStringProperty(CrmStr.headercolumn,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public Guid importdataid
        {
            get
            { return LookupPropertyValue(CrmStr.importdataid); }
            set
            { AddLookupProperty(CrmStr.importdataid,CrmStr.importdata,value); }
        }

        public string importdataName
        {
            get
            { return LookupPropertyName(CrmStr.importdataid); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public Guid importfileid
        {
            get
            { return LookupPropertyValue(CrmStr.importfileid); }
            set
            { AddLookupProperty(CrmStr.importfileid,CrmStr.importfile,value); }
        }

        public string importfileName
        {
            get
            { return LookupPropertyName(CrmStr.importfileid); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public int linenumber
        {
            get
            { return NumberPropertyValue(CrmStr.linenumber); }
            set
            { AddNumberProperty(CrmStr.linenumber,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public int logphasecode
        {
            get
            { return PicklistPropertyIntValue(CrmStr.logphasecode); }
            set
            { AddPicklistProperty(CrmStr.logphasecode,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public string logphasecodeLabel
        {
            get
            { return PicklistPropertyLabelValue(CrmStr.logphasecode); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public Guid owningbusinessunit
        {
            get
            { return LookupPropertyValue(CrmStr.owningbusinessunit); }
            set
            { AddLookupProperty(CrmStr.owningbusinessunit,CrmStr.businessunit,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public Guid owninguser
        {
            get
            { return LookupPropertyValue(CrmStr.owninguser); }
            set
            { AddLookupProperty(CrmStr.owninguser,CrmStr.systemuser,value); }
        }

        [CrmDynAttribute(CrmStr.importlog)]
        public int sequencenumber
        {
            get
            { return NumberPropertyValue(CrmStr.sequencenumber); }
            set
            { AddNumberProperty(CrmStr.sequencenumber,value); }
        }
    }
}